/**
 * Created by dell on 2018/3/16.
 */

$(document).ready(function () {
    
});

function sendMessage() {
    //alert(basePath);basePath加不加都行，用idea都是可以的
    $.ajax({
        type:'post',
        url:basePath+'/customer/findMyUser.html',
        contentType:'application/x-www-form-urlencoded; charset=UTF-8',
        data:{},
        dataType: 'json',
        success:function (data) {
            alert(data.user.userName);
        },
        error:function (e) {

        }
        
    });
}